import router from '@system.router';
import prompt from '@system.prompt';
export default {
    data: {
        fresh:false,
        searchword:'11·11',
        resultList:[
            {
                id:8,goodsDetail:'男子复古运动鞋',goodsImg:'/common/temp/goods1.png',price:'299'
            }, {
                id:9,goodsDetail:'男子低帮时尚华夫运动鞋',goodsImg:'/common/temp/goods2.png',price:'399'
            }, {
                id:10,goodsDetail:'男子刺绣柔软纯棉T恤',goodsImg:'/common/temp/goods3.png',price:'129'
            }, {
                id:11,goodsDetail:'【2022新品】李宁反伍BADFIVE惟楚棉夹克',goodsImg:'/common/temp/goods4.png',price:'129'
            }, {
                id:12,goodsDetail:'CBA专业篮球系列男子比赛裤',goodsImg:'/common/temp/goods5.png',price:'199'
            }, {
                id:13,goodsDetail:'男女套头卫衣',goodsImg:'/common/temp/goods6.png',price:'429'
            }, {
                id:14,goodsDetail:'PUMA TEAM BOMBER JACKET 男子梭织外套',goodsImg:'/common/temp/goods7.png',price:'499'
            }, {
                id:15,goodsDetail:'DAS CC GRAPHIC HALF-ZIP CREW W女子针织卫衣',goodsImg:'/common/temp/goods8.png',price:'329'
            },
        ],
        newresultList:[
            {
                id:9,goodsDetail:'男子低帮时尚华夫运动鞋',goodsImg:'/common/temp/goods2.png',price:'399'
            }, {
                id:10,goodsDetail:'男子刺绣柔软纯棉T恤',goodsImg:'/common/temp/goods3.png',price:'129'
            }, {
                id:11,goodsDetail:'【2022新品】李宁反伍BADFIVE惟楚棉夹克',goodsImg:'/common/temp/goods4.png',price:'129'
            }, {
                id:12,goodsDetail:'CBA专业篮球系列男子比赛裤',goodsImg:'/common/temp/goods5.png',price:'199'
            }, {
                id:13,goodsDetail:'男女套头卫衣',goodsImg:'/common/temp/goods6.png',price:'429'
            }, {
                id:14,goodsDetail:'PUMA TEAM BOMBER JACKET 男子梭织外套',goodsImg:'/common/temp/goods7.png',price:'499'
            }, {
                id:15,goodsDetail:'DAS CC GRAPHIC HALF-ZIP CREW W女子针织卫衣',goodsImg:'/common/temp/goods8.png',price:'329'
            },
        ],
    },
onInit() {
    console.info('searchword:' + this.searchword)
},
    refresh:function(e){

        var　that = this;
        that.fresh = e.freshing;
        setTimeout(function(){
            that.fresh = false;
            that.resultList.unshift(this.newresultList)
            prompt.showToast({
                message:'刷新成功'
            })
        },2000)
    },

    back(){
        router.back();

    },
}
